package com.wx.gof.pattern.structural.decorator;

/**
 * @ClassName SausageDecorator
 * @Author wx
 * @Description 煎饼果子装饰器-加香肠
 * @Date 2018-12-08-1:48
 */
public class SausageDecorator extends BattercakeDecorator{
    public SausageDecorator(IBattercake iBattercake) {
        super(iBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + "加一根香肠";
    }

    @Override
    public int cost() {
        return super.cost() + 3;
    }
}
